<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>数据列表</title>

</head>

<body>
	<table>
		<tr>
			<td>NODEID</td>
			<td>NODENAME</td>
			<td>PID</td>
		</tr>
		<?php
		    require 'MySqlHelper.php';
		    /* $link = mysql_connect("localhost","root","root");
		    mysql_set_charset("utf8");
		    if(!$link)
		    {
		    	die("Could not connect:" . mysql_error());
		    }
		    else
		    { 
		    	mysql_select_db("test",$link);
		    	$rows =mysql_query("call TreeDataGet();");*/
				$abc=new MySqlHelper();
				$rows=$abc->GetRow('select ID as NODEID,NodeName as NODENAME,PID from Tree;');
		    	while ($row=mysqli_fetch_array($rows))
		    	{
		?>
		<tr>
		 	<td><?php echo $row["NODEID"];?></td>
		 	<td><?php echo $row["NODENAME"];?></td>
		    <td><?php echo $row["PID"];?></td>
	 	</tr>
		<?php
		    	}
		    	//echo json_encode($arr);
		    //}
		    //mysql_close($link);
	    ?>
	</table>
</body>
</html>